const path = require('path');
const config = require('./webpack.base.js');
const merge = require('webpack-merge');
const nodeExternals = require('webpack-node-externals')
const serverConfig = {
    mode: "development",
    target: "node",
    entry: "./src/server/index.js",
    output: {
        filename: "bundle.js",
        path: path.resolve( __dirname , "bundle")
    },
    externals: [
        nodeExternals()
    ]
}

module.exports = merge(config, serverConfig);
